/*
 * file.h
 *
 *  Created on: 11.11.2011
 *      Author: krasko
 */

#ifndef FILE_H_
#define FILE_H_

#include <string>
#include <stdio.h>

class File {
	FILE * f;
	bool opened;
	friend File & operator <<(File &, const int);
	friend File & operator <<(File &, const std::string &);
	File(const File &);
	File & operator =(const File &);
public:
	File(const std::string &);
	void close();
	~File();
};

#endif /* FILE_H_ */
